package com.stagewebserver.webserver.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.stagecommon.common.pojo.Orders;
import com.stagecommon.common.pojo.RespBean;
import com.stagecommon.common.vo.OrderItemVo;
import com.stagecommon.common.vo.OrdersVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.time.LocalDate;
import java.util.List;

public interface OrdersService extends IService<Orders> {

    RespBean addOrder(OrderItemVo order) throws  Exception;

    RespBean selectPersonalOrders(String username);

    RespBean uploadFile(MultipartFile file, Orders orders) throws Exception;

    void downloadFile(String filename, HttpServletResponse resp);

    RespBean addRemarks(Orders orders);

    RespBean getOrderDetailByOrderNum(String orderNum);

    RespBean updateReceiveOrder(OrdersVo orders);

    RespBean updateRejectOrder(Orders orders);

    RespBean selectOrderDetailById(Long orderId);
}
